@layout("/common/_container.html",{js:["/assets/bms/city/city.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">城市信息</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="condition" class="layui-input" type="text" placeholder="名称"/>
                            </div>
                            <div class="layui-inline">
                                <select name="isHot" id="isHot" xm-select="selHot" xm-select-radio="">
                                    <option value="">是否热门</option>
                                    <option value="1">是</option>
                                    <option value="2">否</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select name="level" id="level" xm-select="selLevel" xm-select-radio="">
                                    <option value="">选择层级</option>
                                    <option value="1">1</option>
                                    <option value="1">2</option>
                                    <option value="1">3</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe669;</i>同步</button>
                                <button id="btnUpdate" class="layui-btn icon-btn"><i class="layui-icon">&#xe639;</i>完善</button>
                                <button id="btnClear" class="layui-btn icon-btn"><i class="layui-icon">&#xe639;</i>清空</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="cityTable" lay-filter="cityTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="isHotTpl">
    <input type="checkbox" lay-filter="isHot" value="{{d.id}}" lay-skin="switch" lay-text="是|否" {{d.isHot==1?'checked':''}} />
</script>

<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
@}